package mspbots.data.manage.core.client;

import org.springframework.cloud.client.loadbalancer.reactive.ReactorLoadBalancerExchangeFilterFunction;
import org.springframework.stereotype.Service;
import org.springframework.web.reactive.function.client.WebClient;

/**
 * mspbots.data.manage.core.client.AutoTaskClient
 *
 * @author <a href="https://github.com/vnobo">Alex bob</a>
 * @date Created by 2020/10/21
 */
@Service("auto-task")
public class AutoTaskClient extends AbstractDefaultClient {


    public AutoTaskClient(WebClient.Builder webBuilder,
                          ReactorLoadBalancerExchangeFilterFunction filterFunction) {
        super(webBuilder.baseUrl("http://auto-task-client/")
                .filter(filterFunction).build());
    }
}
